{template 'common/header'}
<div class="main">
	<ul class="nav nav-tabs">
		<li><a href="{php echo $this->createWebUrl('answer', array('id'=>$sinfo['rid']))}">调研报告统计</a></li>
		<li class="active"><a href="{php echo $this->createWebUrl('answer', array('id'=>$sinfo['rid'],'act'=>'detail_list'))}">详细调研报告</a></li>
	</ul>

	{template 'survey_info'}
	<form action="" class="form-horizontal form" method="post" enctype="multipart/form-data">

		<div class="panel panel-default">
			<div class="panel-heading">
				会员调研详情
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">用户</label>
					<div class="col-sm-8">
						<p class="help-block"><a href="{php echo url('mc/member/post', array('uid'=>$uid))}" target="_blank">{$userinfo['realname']}</a></p>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">手机</label>
					<div class="col-sm-8">
						<p class="help-block">{$userinfo['mobile']}</p>
					</div>
				</div>
				{loop $question_list $row}
				{php $created = $answer[$row['sqid']]['created'];}
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">{$row['title']}</label>
					<div class="col-sm-8">
						<p class="help-block">{$answer[$row['sqid']]['content']}</p>
					</div>
				</div>
				{/loop}
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">提交时间</label>
					<div class="col-sm-8">
						<p class="help-block">{php echo date('Y-m-d H:i:s', $created);}</p>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">&nbsp;</label>
					<div class="col-sm-9">
						<a onclick="history.go(-1);" class="btn btn-primary col-lg-1">返回</a>
					</div>
				</div>
			</div>
		</div>

	</form>
</div>
{template 'common/footer'}